/*
 * @Description: 
 * @Author: mmzhang
 * @Date: 2022-04-15 11:10:23
 * @LastEditTime: 2023-01-12 14:42:29
 */

import table from '@/components/dt/table/render.js'
import nameOpt from '@/biz/option/name.js'
import dateOpt from '@/biz/option/date.js'
import Opt from '@/components/dt/info/Opt.js'
import ruleOpt from '@/biz/option/rule.js'
import dt from '@dt/dt'

let _this = null
class ParamsCount {
  constructor(vm) {
    this.opts = {}
    _this = vm
    this.build()
  }
  build() {
    this.opts = {
      countList: [
      {
        title: '签约金额(元)',
        key: 'contractMoney'
      }, {
        title: '签约套数(套)',
        key: 'contractCount'
      }, {
        title: '签约面积(㎡)',
        key: 'contractArea',
        line:true
      }, {
        title: '回款金额(元)',
        key: 'repaymentMoney'
      }, {
        title: '全款套数(套)',
        key: 'repaymentCount'
      }],
      countAreaList: [
      {
        title: '签约套数(套)',
        key: 'contractQuantity'
      }, {
        title: '签约面积(㎡)',
        key: 'contractArea',
        line: true
      }, {
        title: '调整面积(㎡)',
        key: 'contractAdjustmentArea',
        line: true
      }, {
        title: '退签套数(套)',
        key: 'retreatContractQuantity'
      }, {
        title: '退签面积(㎡)',
        key: 'retreatContractArea',
        line: true
      }, {
        title: '净值套数(套)',
        key: 'contractNetWorthQuantity'
      }, {
        title: '净值面积(㎡)',
        key: 'contractNetWorthArea'
      }],
      countMoneyList: [
      {
        title: '签约套数(套)',
        key: 'contractQuantity'
      }, {
        title: '签约金额(元)',
        key: 'contractAmount',
        line: true
      }, {
        title: '调整金额(元)',
        key: 'contractAdjustmentAmount',
        line: true
      }, {
        title: '退签套数(套)',
        key: 'retreatContractQuantity'
      }, {
        title: '退签金额(元)',
        key: 'retreatContractAmount',
        line: true
      }, {
        title: '净值套数(套)',
        key: 'contractNetWorthQuantity'
      }, {
        title: '净值金额(元)',
        key: 'contractNetWorthAmount'
      }],
      countVal: {
        contractArea: 0,
        contractCount: 0,
        contractMoney: 0,
        repaymentCount: 0,
        repaymentMoney: 0,
      },
      countActualVal:{
        subscribeQuantity: 0,
        subscribeAmount: 0,
        contractQuantity: 0,
        contractAmount: 0,
        retreatContractQuantity: 0,
        retreatContractAmount: 0,
        subscribeNetWorthQuantity: 0,
        subscribeNetWorthAmount: 0,
        actualSubscribeNetWorthQuantity: 0,
        actualSubscribeNetWorthAmount: 0,
        contractNetWorthQuantity: 0,
        contractNetWorthAmount: 0,
        subscribeArea: 0,
        contractArea: 0,
        retreatContractArea: 0,
        subscribeNetWorthArea: 0,
        actualSubscribeNetWorthArea: 0,
        contractNetWorthArea: 0,
        cancelQuantity: 0,
        cancelAmount: 0,
        cancelArea: 0,
        subscribeAdjustmentArea: 0,
        subscribeAdjustmentAmount: 0,
        contractAdjustmentAmount: 0,
        contractAdjustmentArea: 0
      },
      tips: '汇总数据不包含待审核及已驳回数据',
      tipsArea: '（1）总销数据不包含“待审核”及“已驳回”订单数据；<br/>（2）签约面积为签约单提交时的“初始面积”；<br/>（3）如订单有面积调整，则退签面积为“签约单调整后面积”；<br/>（4）净值面积=签约面积-退签面积+调整面积；<br/> 注：调整面积存在正负调整，统一使用加法计算',
      tipsMoney: '（1）总销数据不包含“待审核”及“已驳回”订单数据；<br/>（2）签约金额为签约单提交时的“初始金额”；<br/>（3）如订单有金额调整，则退签金额为“签约单调整后金额”；<br/>（4）净值金额=签约金额-退签金额+调整金额；<br/>注：调整金额存在正负调整，统一使用加法计算'
    }
  }
  options() {
    return this.opts
  }
}

export default ParamsCount